<?php

class ActivityValentineOrderRewardAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * @param $userId
     * @param $activityId
     * @param $position
     * @param $isGiveUp
     * @param $reqTime
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId,$activityId,$position,$isGiveUp,$reqTime)
    {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(
            ActivityService::get()->activityValentineOrderReward($userId,$activityId,$position,$isGiveUp,$reqTime)
        );
    }
}